<?php

/**
 * @author minhhai
 * @copyright 2013
 */
?>

<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		
			
        
        <?php $this->load->helper('url');?>
        
  	<!-- Css-->	
		<link href="<?php echo base_url();?>css/lms-application_bk.css" rel="stylesheet" type="text/css"/>
		<link href="<?php echo base_url();?>css/lms-course_bk.css" rel="stylesheet" type="text/css"/>
		<link href="<?php echo base_url();?>css/footer_bk.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo base_url();?>public/css/style.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo base_url();?>public/css/styles_course.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo base_url();?>public/css/style-disc.css" rel="stylesheet" type="text/css"/>		
	<!-- JS -->	
		<script type="text/javascript" src="<?php echo base_url();?>js/lms-main_vendor.js" charset="utf-8"></script>
        
    <!-- Load phan title-->
    <?php $this->load->view('commons/title_head');?>
    <!--Het phan title-->	
</head>

<!--Super Calculator-->
<?php $this->load->view('course_view/super_calculator');?>
<!--end Super Calculator-->



<body class="courseware None">
<!-- THAY DOI header -->
    <?php $this->load->view('discussion_view/discussion_header');?>

	<section class="content-wrapper">

       <!--Menu top-->
            <?php $this->load->view('discussion_view/disc_menu_top'); ?>
       <!--End menu top-->
       
		<section class="container">
			<div class="course-wrapper">
            
            <!-- Menu Left -->
			<?php $this->load->view('discussion_view/discussion_left_menu_view');?>
            <!--End MenuLeft-->

                
            <!--PHAN NOI DUNG-->
            <!--Khung noi dung-->
                <div id = 'course_wrapper'>  
                    
                    <!--PHAN THAO LUAN-->
    <!--Khung thao luan-->
    <div id = 'disc_wrapper'>    
    
    <div class='ques_ans_content'>
    <?php
        foreach ($ques_inf as $ques) {
            $ques_content = $ques['disc_ques_content'];
            $ques_time = $ques['disc_ques_time'];
            $ques_title = $ques['disc_ques_title'];
            $ques_name = $ques['disc_ques_name'];
            $ques_email = $ques['disc_ques_email'];
            $ques_id = $ques['disc_ques_id'];
            $lecture_id = $ques['lecture_id'];
            $ques_quantity_ans = $ques['disc_ques_quantity_ans'];
            $course_id = $ques['course_id'];
    ?>
        
        
        <!--Hien tieu de cau hoi-->
        <div class = 'disc_title'>
            <h4><?php echo $ques_title; ?></h4><br/>
        </div>
        
        <!--Thong tin ve cau hoi-->   
        <div class = 'disc_ques_inf'>                 
            <!--Hien thong tin nguoi hoi-->
                <text align='left'> Người hỏi › 
                <a href='#'>"<?php echo $ques_name; ?>"  </a>             
            <!--Hien thoi gian hoi-->            
                Đăng ngày › <?php echo $ques_time; ?>              
            <!--Hien so cau tra loi-->            
                Số câu trả lời › <a href="<?php echo base_url(); ?>discussion_controller/show_ques/<?php echo $ques_id; ?>"><?php echo $ques_quantity_ans; ?></a> </text>
                <br/>
    
        </div>
        
        
        <!--Hien noi dung cau hoi-->
        <div class = 'disc_content'>

            <?php echo $ques_content; ?>  
        <br/>
        </div>
        
        <!--Chuc nang sua > xoa > Tra loi cau hoi-->
        <div class = 'disc_reply'>
            <a href='<?php echo base_url(); ?>discussion_controller/show_ques/<?php echo $ques_id; ?>'> Xem câu hỏi › </a>
            <!--<a href='del_ques'> Xóa › </a>-->
            <!--<a href='TrangTraLoiCauHoi/<//?php echo $ques_id;?>'> Trả Lời</a>-->
        </div>
        
        <br/><br/><br/>
        
    <?php } ?>
    </div>
    </div>
    <!--HET PHAN THAO LUAN-->
                    
                    
                    
                    
                </div>
            <!--HET PHAN NOI DUNG-->
			
            
            
			</div>
		</section>
	</section>

   	<!--Footer-->
    <?php $this->load->view('commons/footer_all');?>
</body></html>